﻿<%@ Page Language="C#" AutoEventWireup="True" Inherits="ObjectEdit" Codebehind="ObjectEdit.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Object Edit</title>
</head>
<body>
    <form id="frmObjectEdit" runat="server">
    <div>
        <a href = "ControlPanel.aspx">Return to Control Panel</a><br />
        <br />
        Table ID:
        <asp:Label ID="lblTableID" runat="server"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnViewDat" runat="server" onclick="btnViewDat_Click" PostBackUrl ="~/DataEdit.aspx" 
            Text="View Data" Enabled="False" />
        <br />
        Table Version:
        <asp:Label ID="lblTableVer" runat="server"></asp:Label>
        <br />
        <asp:Label ID="Label1" runat="server" Text="Object Name:"></asp:Label>
        <asp:DropDownList ID="ddbObjName" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddbObjName_SelectedIndexChanged">
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnDel" runat="server" Text="Delete Table" 
            onclick="btnDel_Click" />
        &nbsp;
        <br />
        Column Count:
        <asp:Label ID="lblCount" runat="server"></asp:Label>
        <br />
        <asp:XmlDataSource ID="XmlDataSource1" runat="server">
        </asp:XmlDataSource>
    
    </div>
        <asp:GridView ID="GridView1" runat="server" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" OnRowEditing = "GridView1_RowEditing">
            
        </asp:GridView>
    <asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
&nbsp;
    <asp:TextBox ID="txtNameInput" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Label12" runat="server" ForeColor="Blue" 
        Text="Enter the Name of the attribute you want to show or edit"></asp:Label>
    <br />
    <br />
    <asp:Button ID="btnShow" runat="server" onclick="btnShow_Click" Text="Show" />
&nbsp;<asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click" Text="Edit" />
&nbsp;
    <asp:Button ID="btnDelCol" runat="server" Text="Delete" 
        onclick="btnDelCol_Click" />
&nbsp;<asp:Button ID="btnNew" runat="server" onclick="btnNew_Click" Text="New" />
    <br />
    <br />
    <asp:Label ID="lblNote" runat="server" ForeColor="Blue" 
        Text="Please input a new field (attribute of the object)" Visible="False"></asp:Label>
    <br />
    <asp:Label ID="Label3" runat="server" Text="name"></asp:Label>
    <asp:Label ID="Label8" runat="server" ForeColor="Red" Text="*"></asp:Label>
&nbsp;<asp:TextBox ID="txtName" runat="server" ReadOnly="True"></asp:TextBox>
    <br />
    <asp:Label ID="Label4" runat="server" Text="type"></asp:Label>
    <asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*"></asp:Label>
&nbsp;<asp:DropDownList 
            ID="ddlType" runat="server">
        </asp:DropDownList>
    <br />
    <asp:Label ID="Label5" runat="server" Text="allownull"></asp:Label>
    <asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*"></asp:Label>
&nbsp;<asp:RadioButton 
            ID="rdoNullTrue" runat="server" Checked="True" GroupName="AllowNull" 
            Text="True" />
&nbsp;&nbsp;&nbsp;
        <asp:RadioButton ID="rdoNullFalse" runat="server" GroupName="AllowNull" 
            Text="False" />
        <br />
    <asp:Label ID="Label14" runat="server" Text="primary key"></asp:Label>
    <asp:Label ID="Label15" runat="server" ForeColor="Red" Text="*"></asp:Label>
    &nbsp;<asp:RadioButton 
            ID="rdoPriKeyTrue" runat="server" GroupName="PriKey" 
            Text="True" Enabled="False" />
&nbsp;&nbsp;&nbsp;
        <asp:RadioButton ID="rdoPriKeyFalse" runat="server" GroupName="PriKey" 
            Text="False" Checked="True" Enabled="False" />
    
    <br />
    <asp:Label ID="Label6" runat="server" Text="default"></asp:Label>
&nbsp;<asp:TextBox ID="txtDefault" runat="server" ReadOnly="True"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
        Text="update" Enabled="False" />
&nbsp;<asp:Button ID="btnCancel" runat="server" Text="cancel" 
        onclick="btnCancel_Click" Enabled="False" />
    &nbsp;<asp:Button ID="btnInsert" runat="server" Enabled="False" Text="insert" 
        onclick="btnInsert_Click" />
    <br />
    <br />
    Description:<br />
    <asp:TextBox ID="txtDsp" runat="server" Height="44px" ReadOnly="True" 
        TextMode="MultiLine" Width="193px"></asp:TextBox>
    </form>
</body>
</html>
